package com.yellowpage.wf.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Worklist entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_WORKLIST")
public class Worklist implements java.io.Serializable {

	// Fields

	private Long worklistId;
	private Long workflowNodeInstanceId;
	private String handlers;
	private String status;
	private Long participantsId;
	private String value01;
	private String value02;
	private String value03;

	// Constructors

	/** default constructor */
	public Worklist() {
	}

	/** full constructor */
	public Worklist(Long workflowNodeInstanceId, String handlers,
			String status, Long participantsId, String value01, String value02,
			String value03) {
		this.workflowNodeInstanceId = workflowNodeInstanceId;
		this.handlers = handlers;
		this.status = status;
		this.participantsId = participantsId;
		this.value01 = value01;
		this.value02 = value02;
		this.value03 = value03;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "WORKLIST_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getWorklistId() {
		return this.worklistId;
	}

	public void setWorklistId(Long worklistId) {
		this.worklistId = worklistId;
	}

	@Column(name = "WORKFLOW_NODE_INSTANCE_ID", precision = 18, scale = 0)
	public Long getWorkflowNodeInstanceId() {
		return this.workflowNodeInstanceId;
	}

	public void setWorkflowNodeInstanceId(Long workflowNodeInstanceId) {
		this.workflowNodeInstanceId = workflowNodeInstanceId;
	}

	@Column(name = "HANDLERS", length = 128)
	public String getHandlers() {
		return this.handlers;
	}

	public void setHandlers(String handlers) {
		this.handlers = handlers;
	}

	@Column(name = "STATUS", length = 10)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "PARTICIPANTS_ID", precision = 18, scale = 0)
	public Long getParticipantsId() {
		return this.participantsId;
	}

	public void setParticipantsId(Long participantsId) {
		this.participantsId = participantsId;
	}

	@Column(name = "VALUE_01", length = 128)
	public String getValue01() {
		return this.value01;
	}

	public void setValue01(String value01) {
		this.value01 = value01;
	}

	@Column(name = "VALUE_02", length = 128)
	public String getValue02() {
		return this.value02;
	}

	public void setValue02(String value02) {
		this.value02 = value02;
	}

	@Column(name = "VALUE_03", length = 128)
	public String getValue03() {
		return this.value03;
	}

	public void setValue03(String value03) {
		this.value03 = value03;
	}

}